package com.mycompany.myapp.web.rest.aoptestcontroller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create by wys on 2018/8/4
 */
@RestController
@RequestMapping(value = "/aop")
public class AOPExceptionTestController {

    @RequestMapping("/nullpoingexception")
    public void nullpoingexception() {
        System.out.println(" 15  nullpoingexception " );
        throw  new NullPointerException();

    }

    @RequestMapping("expection")
    public String ex() {
        return "ex";
    }

}
